package com.dnzx.model.system;

import java.util.List;

import org.apache.ibatis.type.Alias;
import org.dnzx.framework.orm.LongBaseEntity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>系统后台资源菜单实体</p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.dnzx.vo
 * 
 * @date 2017/9/15 11:03
 */
@Alias("menuBO")
@ApiModel(value="MenuBO 菜单信息实体类")
public class MenuBO extends LongBaseEntity {

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="菜单名称")
    private String name;
	@ApiModelProperty(value="菜单英文名称")
    private String englishName;
	@ApiModelProperty(value="菜单描述")
    private String content;
	@ApiModelProperty(value="菜单url")
    private String url;
	@ApiModelProperty(value="菜单排序")
    private Long sort;
	@ApiModelProperty(value="父菜单id")
    private Long parentId;
	@ApiModelProperty(value="图标")
    private String icon;
	
    private String isCheck;// 冗余字段-是否选中（用于树形展示）
//    @JsonIgnore
    private List<MenuBO> subMenuBOList;// 冗余字段-下级区域（用于树形展示）
    @JsonIgnore
    private Long parentIdQuery;// 冗余字段-父级ID（用于查询）
    @JsonIgnore
    private Long roleId;// 冗余字段-角色ID（用于查询）
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getSort() {
		return sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(String isCheck) {
		this.isCheck = isCheck;
	}

	public List<MenuBO> getSubMenuBOList() {
		return subMenuBOList;
	}

	public void setSubMenuBOList(List<MenuBO> subMenuBOList) {
		this.subMenuBOList = subMenuBOList;
	}

	public Long getParentIdQuery() {
		return parentIdQuery;
	}

	public void setParentIdQuery(Long parentIdQuery) {
		this.parentIdQuery = parentIdQuery;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getEnglishName() {
		return englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}
	
}
